#ifndef __REGDEFINE_H
#define __REGDEFINE_H

/**************************************************************************
**		Register Offset Definitions
***************************************************************************
*/

#define		ZD1205_CR0			0x0000
#define		ZD1205_CR1			0x0004
#define		ZD1205_CR2			0x0008
#define		ZD1205_CR3			0x000C
#define		ZD1205_CR5			0x0010
#define		ZD1205_CR6			0x0014
#define		ZD1205_CR7			0x0018
#define		ZD1205_CR8			0x001C
#define		ZD1205_CR4			0x0020
#define		ZD1205_CR9			0x0024
#define		ZD1205_CR10			0x0028
#define		ZD1205_CR11			0x002C
#define		ZD1205_CR12			0x0030
#define		ZD1205_CR13			0x0034
#define		ZD1205_CR14			0x0038
#define		ZD1205_CR15			0x003C
#define		ZD1205_CR16			0x0040
#define		ZD1205_CR17			0x0044
#define		ZD1205_CR18			0x0048
#define		ZD1205_CR19			0x004C
#define		ZD1205_CR20			0x0050
#define		ZD1205_CR21			0x0054
#define		ZD1205_CR22			0x0058
#define		ZD1205_CR23			0x005C
#define		ZD1205_CR24			0x0060
#define		ZD1205_CR25			0x0064
#define		ZD1205_CR26			0x0068
#define		ZD1205_CR27			0x006C
#define		ZD1205_CR28			0x0070
#define		ZD1205_CR29			0x0074
#define		ZD1205_CR30			0x0078
#define		ZD1205_CR31			0x007C
#define		ZD1205_CR32			0x0080
#define		ZD1205_CR33			0x0084
#define		ZD1205_CR34			0x0088
#define		ZD1205_CR35			0x008C
#define		ZD1205_CR36			0x0090
#define		ZD1205_CR37			0x0094
#define		ZD1205_CR38			0x0098
#define		ZD1205_CR39			0x009C
#define		ZD1205_CR40			0x00A0
#define		ZD1205_CR41			0x00A4
#define		ZD1205_CR42			0x00A8
#define		ZD1205_CR43			0x00AC
#define		ZD1205_CR44			0x00B0
#define		ZD1205_CR45			0x00B4
#define		ZD1205_CR46			0x00B8
#define		ZD1205_CR47			0x00BC
#define		ZD1205_CR48			0x00C0
#define		ZD1205_CR49			0x00C4
#define		ZD1205_CR50			0x00C8
#define		ZD1205_CR51			0x00CC
#define		ZD1205_CR52			0x00D0
#define		ZD1205_CR53			0x00D4
#define		ZD1205_CR54			0x00D8
#define		ZD1205_CR55			0x00DC
#define		ZD1205_CR56			0x00E0
#define		ZD1205_CR57			0x00E4
#define		ZD1205_CR58			0x00E8
#define		ZD1205_CR59			0x00EC
#define		ZD1205_CR60			0x00F0
#define		ZD1205_CR61			0x00F4
#define		ZD1205_CR62			0x00F8
#define		ZD1205_CR63			0x00FC
#define		ZD1205_CR64			0x0100
#define		ZD1205_CR65			0x0104
#define		ZD1205_CR66			0x0108
#define		ZD1205_CR67			0x010C
#define		ZD1205_CR68			0x0110
#define		ZD1205_CR69			0x0114
#define		ZD1205_CR70			0x0118
#define		ZD1205_CR71			0x011C
#define		ZD1205_CR72			0x0120
#define		ZD1205_CR73			0x0124
#define		ZD1205_CR74			0x0128
#define		ZD1205_CR75			0x012C
#define		ZD1205_CR76			0x0130
#define		ZD1205_CR77			0x0134
#define		ZD1205_CR78			0x0138
#define		ZD1205_CR79			0x013C
#define		ZD1205_CR80			0x0140
#define		ZD1205_CR81			0x0144
#define		ZD1205_CR82			0x0148
#define		ZD1205_CR83			0x014C
#define		ZD1205_CR84			0x0150
#define		ZD1205_CR85			0x0154
#define		ZD1205_CR86			0x0158
#define		ZD1205_CR87			0x015C
#define		ZD1205_CR88			0x0160
#define		ZD1205_CR89			0x0164
#define		ZD1205_CR90			0x0168
#define		ZD1205_CR91			0x016C
#define		ZD1205_CR92			0x0170
#define		ZD1205_CR93			0x0174
#define		ZD1205_CR94			0x0178
#define		ZD1205_CR95			0x017C
#define		ZD1205_CR96			0x0180
#define		ZD1205_CR97			0x0184
#define		ZD1205_CR98			0x0188
#define		ZD1205_CR99			0x018C
#define		ZD1205_CR100		0x0190
#define		ZD1205_CR101		0x0194
#define		ZD1205_CR102		0x0198
#define		ZD1205_CR103		0x019C
#define		ZD1205_CR104		0x01A0
#define		ZD1205_CR105		0x01A4
#define		ZD1205_CR106		0x01A8
#define		ZD1205_CR107		0x01AC
#define		ZD1205_CR108		0x01B0
#define		ZD1205_CR109		0x01B4
#define		ZD1205_CR110		0x01B8
#define		ZD1205_CR111		0x01BC
#define		ZD1205_CR112		0x01C0
#define		ZD1205_CR113		0x01C4
#define		ZD1205_CR114		0x01C8
#define		ZD1205_CR115		0x01CC
#define		ZD1205_CR116		0x01D0
#define		ZD1205_CR117		0x01D4
#define		ZD1205_CR118		0x01D8
#define		ZD1205_CR119		0x01EC
#define		ZD1205_CR120		0x01E0
#define		ZD1205_CR121		0x01E4
#define		ZD1205_CR122		0x01E8
#define		ZD1205_CR123		0x01EC
#define		ZD1205_CR124		0x01F0
#define		ZD1205_CR125		0x01F4
#define		ZD1205_CR126		0x01F8
#define		ZD1205_CR127		0x01FC
#define		ZD1205_CR128		0x0200
#define		ZD1205_CR129		0x0204
#define		ZD1205_CR130		0x0208
#define		ZD1205_CR131		0x020C
#define		ZD1205_CR132		0x0210
#define		ZD1205_CR133		0x0214
#define		ZD1205_CR134		0x0218
#define		ZD1205_CR135		0x021C
#define		ZD1205_CR136		0x0220
#define		ZD1205_CR137		0x0224
#define		ZD1205_CR138		0x0228
#define		ZD1205_CR139		0x022C
#define		ZD1205_CR140		0x0230
#define		ZD1205_CR141		0x0234
#define		ZD1205_CR142		0x0238
#define		ZD1205_CR143		0x023C
#define		ZD1205_CR144		0x0240
#define		ZD1205_CR145		0x0244
#define		ZD1205_CR146		0x0248
#define		ZD1205_CR147		0x024C
#define		ZD1205_CR148		0x0250
#define		ZD1205_CR149		0x0254
#define		ZD1205_CR150		0x0258
#define		ZD1205_CR151		0x025C
#define		ZD1205_CR152		0x0260
#define		ZD1205_CR153		0x0264
#define		ZD1205_CR154		0x0268
#define		ZD1205_CR155		0x026C
#define		ZD1205_CR156		0x0270
#define		ZD1205_CR157		0x0274
#define		ZD1205_CR158		0x0278
#define		ZD1205_CR159		0x027C
#define		ZD1205_CR160		0x0280
#define		ZD1205_CR161		0x0284
#define		ZD1205_CR162		0x0288
#define		ZD1205_CR163		0x028C
#define		ZD1205_CR164		0x0290
#define		ZD1205_CR165		0x0294
#define		ZD1205_CR166		0x0298
#define		ZD1205_CR167		0x029C
#define		ZD1205_CR168		0x02A0
#define		ZD1205_CR169		0x02A4
#define		ZD1205_CR170		0x02A8
#define		ZD1205_CR171		0x02AC
#define		ZD1205_CR172		0x02B0
#define		ZD1205_CR173		0x02B4
#define		ZD1205_CR174		0x02B8
#define		ZD1205_CR175		0x02BC
#define		ZD1205_CR176		0x02C0
#define		ZD1205_CR177		0x02C4
#define		ZD1205_CR178		0x02C8
#define		ZD1205_CR179		0x02CC
#define		ZD1205_CR180		0x02D0
#define		ZD1205_CR181		0x02D4
#define		ZD1205_CR182		0x02D8
#define		ZD1205_CR183		0x02DC
#define		ZD1205_CR184		0x02E0
#define		ZD1205_CR185		0x02E4
#define		ZD1205_CR186		0x02E8
#define		ZD1205_CR187		0x02EC
#define		ZD1205_CR188		0x02F0
#define		ZD1205_CR189		0x02F4
#define		ZD1205_CR190		0x02F8
#define		ZD1205_CR191		0x02FC
#define		ZD1205_CR192		0x0300
#define		ZD1205_CR193		0x0304
#define		ZD1205_CR194		0x0308
#define		ZD1205_CR195		0x030C
#define		ZD1205_CR196		0x0310
#define		ZD1205_CR197		0x0314
#define		ZD1205_CR198		0x0318
#define		ZD1205_CR199		0x031C
#define		ZD1205_CR200		0x0320
#define		ZD1205_CR201		0x0324
#define		ZD1205_CR202		0x0328
#define		ZD1205_CR203		0x032C
#define		ZD1205_CR204		0x0330
#define		ZD1205_PHY_END		0x03fc
#define		RF_IF_CLK			0x0400
#define		RF_IF_DATA			0x0404
#define		PE1_PE2				0x0408
#define		PE2_DLY				0x040C
#define		LE1				0x0410
#define		LE2				0x0414
#define		GPI_EN				0x0418
#define		RADIO_PD			0x042C
#define		RF2948_PD			0x042C
#define		LED1				0x0430
#define		LED2				0x0434
#define		EnablePSManualAGC	0x043C	// 1: enable
#define		CONFIGPhilips		0x0440
#define		SA2400_SER_AP		0x0444
#define		I2C_WRITE			0x0444	// Same as SA2400_SER_AP (for compatible with ZD1201)
#define		SA2400_SER_RP		0x0448
#define		AfterPNP			0x0454
#define		RADIO_PE			0x0458
#define		RstBusMaster		0x045C

#define		RFCFG				0x0464

#define		HSTSCHG				0x046C

#define		PHY_ON				0x0474
#define		RX_DELAY			0x0478
#define		RX_PE_DELAY			0x047C


#define		GPIO_1				0x0490
#define		GPIO_2				0x0494


#define		EncryBufMux			0x04A8


#define		PS_Ctrl				0x0500

#define		ADDA_MBIAS_WarmTime	0x0508

#define		InterruptCtrl		0x0510
#define		TSF_LowPart			0x0514
#define		TSF_HighPart		0x0518
#define		ATIMWndPeriod		0x051C
#define		BCNInterval			0x0520
#define		Pre_TBTT			0x0524	//In unit of TU(1024us)

#define		PCI_TxAddr_p1		0x0600
#define		PCI_TxAddr_p2		0x0604
#define		PCI_RxAddr_p1		0x0608
#define		PCI_RxAddr_p2		0x060C
#define		MACAddr_P1			0x0610
#define		MACAddr_P2			0x0614
#define		BSSID_P1			0x0618
#define		BSSID_P2			0x061C
#define		BCNPLCPCfg			0x0620
#define		GroupHash_P1			0x0624
#define		GroupHash_P2			0x0628
#define		WEPTxIV				0x062C
#define		BasicRateTbl			0x0630
#define		MandatoryRateTbl		0x0634
#define		Wep_Protect			0x063C
#define		RX_THRESHOLD			0x0640
#define		TX_PECtrl			0x0644
#define		PHYDelay			0x066C
#define		BCNFIFO				0x0670
#define		SnifferOn			0x0674
#define		EncryType			0x0678
#define		RetryMAX			0x067C
#define		CtlReg1				0x0680	//Bit0:		IBSS mode
										//Bit1:		PwrMgt mode
#define		DeviceState			0x0684
#define		UnderrunCnt			0x0688
#define		Rx_Filter			0x068c
#define		Ack_Timeout_Ext		0x0690
#define		BCN_FIFO_Semaphore	0x0694
#define		IFS_Value			0x0698
#define		RX_TIME_OUT			0x069C
#define		TotalRxFrm			0x06A0
#define		CRC32Cnt			0x06A4
#define		CRC16Cnt			0x06A8
#define		DecrypErr_UNI		0x06AC
#define		RxFIFOOverrun		0x06B0

#define		DecrypErr_Mul		0x06BC

#define		NAV_CNT				0x06C4
#define		NAV_CCA				0x06C8
#define		RetryCnt			0x06CC

#define		ReadTcbAddress		0x06E8
#define		ReadRfdAddress		0x06EC
#define		CWmin_CWmax			0x06F0
#define		TotalTxFrm			0x06F4
#define     RX_OFFSET_BYTE      0x06F8

#define		CAM_MODE			0x0700
#define		CAM_ROLL_TB_LOW		0x0704
#define		CAM_ROLL_TB_HIGH	0x0708
#define		CAM_ADDRESS			0x070C
#define		CAM_DATA			0x0710
#define     DECRY_ERR_FLG_LOW   0x0714
#define     DECRY_ERR_FLG_HIGH  0x0718
#define		WEPKey0				0x0720
#define		WEPKey1				0x0724
#define		WEPKey2				0x0728
#define		WEPKey3				0x072C
#define     CAM_DEBUG           0x0728
#define     CAM_STATUS          0x072c
#define		WEPKey4				0x0730
#define		WEPKey5				0x0734
#define		WEPKey6				0x0738
#define		WEPKey7				0x073C
#define		WEPKey8				0x0740
#define		WEPKey9				0x0744
#define		WEPKey10			0x0748
#define		WEPKey11			0x074C
#define		WEPKey12			0x0750
#define		WEPKey13			0x0754
#define		WEPKey14			0x0758
#define		WEPKey15			0x075c
#define		TKIP_MODE			0x0760

#define		Dbg_FIFO_Rd			0x0800
#define		Dbg_Select			0x0804
#define		FIFO_Length			0x0808


//#define		RF_Mode					0x080C
#define		RSSI_MGC			0x0810

#define		PON					0x0818
#define		Rx_ON				0x081C
#define		Tx_ON				0x0820
#define		CHIP_EN				0x0824
#define		LO_SW				0x0828
#define		TxRx_SW				0x082C
#define		S_MD				0x0830

// EEPROM Memmory Map Region
#define		E2P_SUBID			0x0900
#define		E2P_POD				0x0904
#define		E2P_MACADDR_P1		0x0908
#define		E2P_MACADDR_P2		0x090C

#define		E2P_PWR_CAL_VALUE	0x0910

#define		E2P_PWR_INT_VALUE	0x0920

#define		E2P_ALLOWED_CHANNEL	0x0930
#define		E2P_PHY_REG			0x0934

#define		E2P_REGION_CODE		0x090E //MZCai Tag ,Origin=0x0960
#define		E2P_FEATURE_BITMAP	0x0964

#define		E2P_36M_CAL_VALUE	0x0950
#define		E2P_36M_INT_VALUE	0x0960
#define		E2P_48M_CAL_VALUE	0x0970
#define		E2P_48M_INT_VALUE	0x0980
#define		E2P_54M_CAL_VALUE	0x0990
#define		E2P_54M_INT_VALUE	0x09A0
#endif
